<div class="sdmenu">
	<?php foreach($menues as $menu): ?>
	<span class="title" id="top"><?php echo image_tag('../menu/images/expanded.gif','alt=> class=arrow').$menu->getNombre() ?></span>
		<?php if($menu->countKernelMenusRelatedByMenuId() > 0): ?>
			<?php $subMenues = $menu->getKernelMenusRelatedByMenuId( $criteriaSubMenu ) ?>
			<div class="submenu">
				<?php foreach($subMenues as $subMenu): ?>
				  <?php if($subMenu->getAccion()  == "menu/menuTercerNivel"): ?>
					  <?php echo  link_to_remote($subMenu->getNombre(), array('update' => $subMenu->getDestino(),'url' => 'menu/menuTercerNivel?id='.$subMenu->getId(),'script' => true));?>
					<?php else :?>  
					  <?php echo  link_to_remote($subMenu->getNombre(), array('update' => $subMenu->getDestino(),'url' => $subMenu->getAccion(),'script' => true));?>
					<?php endif;?>
				<?php endforeach; ?>
			</div>
		<?php else: ?>
			<div class="submenu">0 Menu</div>
		<?php endif; ?>
	<?php endforeach; ?>
</div>